adds lday class and tests