Solving Problem 7