Solution for Problem #44