Solves Problem #7