Completed exercise 9 of stream adventure.