course 221. assignment 2