assignment 2 part2 done.