implemented isLeapYear()