add snippet to build a calendar