Some practice with Java