homework 4 part2 done.