Refactor code

create CookieOperation Class