java homework - project for school, feel free to use it