Created the TimePeriod.cs class