adding homework 3 solutions