Implement pop operation on Cookies