Initial solution for problem 4.