Month class refactoring

Refactoring of duplicated code
Good point! Can you fix it? Then I will merge it.