finished homework for week 2 (term 005)