1 00:00:00,000 --> 00:00:00,272 2 00:00:00,272 --> 00:00:03,480 SPEAKER 1: Now I'm going to leave it up to you to complete the cell template. 3 00:00:03,480 --> 00:00:07,200 Make sure that you check the spec to see exactly what's expected. 4 00:00:07,200 --> 00:00:09,360 Once you've done that, come back to me, and let's 5 00:00:09,360 --> 00:00:13,110 talk about how we remove the stock from the user portfolio. 6 00:00:13,110 --> 00:00:15,010 There are several ways to do this. 7 00:00:15,010 --> 00:00:19,950 We can either delete it from the user's virtual portfolio for whichever table 8 00:00:19,950 --> 00:00:24,090 you have indicated, or we could also log the sale 9 00:00:24,090 --> 00:00:26,370 as a negative quantity of shares. 10 00:00:26,370 --> 00:00:27,210 Up to you. 11 00:00:27,210 --> 00:00:30,180 Depends how you've implemented by. 12 00:00:30,180 --> 00:00:33,300 Also remember to update the user's cache, knowing 13 00:00:33,300 --> 00:00:37,050 that the stock is sold at its current price, not the price 14 00:00:37,050 --> 00:00:40,130 that the user originally bought it. 15 00:00:40,130 --> 00:00:41,237