Completed exercise 12 of stream adventure.