Finished Assignment2.java