Refactored implementation of private instance method monthly_calendar in Calendar class.