Added partial implementation of createWeek function