SYMMETRY GROUPS IN CLASSICAL AND QUANTUM MECHANICS