Pia4 - Java course assignment