added solution to problem 24