Solution for Problem #11