Add time class.