Completed exercise 8 of stream adventure.