Example of handling cookies Domain-driven, Overcomming sealed classes.