Adding chapter code - cookie