Learning to program in Java 8