Add solutions for homework 3.