added leap_year method.