Finished hw5 part1