Solutions for exercise one.