Update Part1.java

Finished part1