Two blocks of masses m and M are connected by a chord passing around a frictionless pulley which is attached to a rotating frame