Created DatePair Class and Task Class