JM2 SOLUTION