Method now checks divisibilty of 100 and 400 to return whether the year is a leap year.