move this 2 to a constant to make this more readable and put an example of a cookie in the doc string