School Project I had to do in Java