CLASSICAL AND QUANTUM MECHANICS WITH LIE ALGEBRAS