Completed exercise 7 of stream adventure.