basic schedule code