Demo code for calendar with class.