Solution for the task "Calendar"