Singular Lagrangians and the Hamel-Appel system