Implemented class lm.