solved problem one