Assignment 2 for Java CSC2181