My first Java assignment