added solution to problem 49