completed exercise 2 of learnyounode.