adding methods to Cookie class