Added code to generate the calendar table contents