Calendar structure and main functionality added