problem 15 finally correct