Modified get_cookies to use cookie class