homework lecture 3 problem 1 done