Implemented the export function in CalendarModel