The Atwood machine consists of a single pulley of radius R and moment of inertia I. Two objects with masses m and M are connected by an inextensible string of length l and pass over the pulley. 1. Write the Lagrangian function and 2. Calculate the acceleration of the system of equations.