added oo-style time-class