Impletemented compare() to compare 2 instance subclassed of MyDate