Solutions for exercise two.