Solution problem 6