problem 26 first solution