made Entity implements Serializable interface to ensure we can correctly deserialize entity objects resoring their connection to proper instantiated model