# Data strucures Possible data structure layout ```C typedef struct Subject{ char * name; time_t * created; time_t * deadline; int priority; } Subject; typedef struct Event { Subject subject; time_t plannedStartTime; time_t plannedEndTime; }Event; //to Ical typedef struct DayPlan{ time_t date; Event ** plan; //arr of event* size_t planLen;//len of plan array size_t planSize;//allocated space fro plan array }DayPlan; ``` ## Functionality Day plan can either be crated from user input or read from file to continue previous day. priority and available time are used to create dayplan which is exported as iCal after task is completed and priorities are updated for next day and stored in file.