Final project for Java programming