Completed exercise 3 of stream adventure.