homework4 part1 done.