adding time class