Assignment # 10 solution