overridding equals() and hashcode() in Asset.