TimePeriod class added