Completed exercise 11 of stream adventure.