Finished HW4 part1