Improved Cookie class