Change year to attr_accessor

* Reformat leap logic to be more readable.