Implemented a calendar display function