added leap year analysis (though right answer without...)