Completed exercise 13 of stream adventure.