Added implementation for leap year