Added code to track the full year and to calculate the day of the week automatically.