added solution for problem 6