Creating a cookie helper