Started writing solutions for homework 3.