updated cookie chapter - code needs to be checked