Functionality  to serialize object was added