Solved problem #44.