My first attempts of writing Java code