data structure for schedule