Completed hw4 part1