A homework project using Java