Solved problem one