histogram can now be serialized and unserialized