added an interval class to handle complex interval measuements, like year and month, which change based on the month/year