made Attribute serializable