Solved problem #7