course 221. assignment 3