Problem #7
Problem #8