Copying some work from the book for day 3.