add methods _createEventsObj and buildCalendar to calendar class