add day structure and first functions