public ITimePeriod this[int index] { get { return periods[ index ]; } set { periods[ index ] = value; } }