Fourth semester project, using Java