Java 8 code from Code Dojo 21, paired with Rupert Wood