Implemented cookie helper class