exercise 6 calendar implementation