Exercise from the book
Java SE 8 for the really impatient