Adding TimeRange class