added solution for problem 20