assignment 2 part 3 done