Worked on homework 3.