week 8 finished code