Java coursework final project