Working on homework 3.