Implementing the calendar basic functions