Solved through problem 5