Java project for Programming 2 - first assignment