adding update_attributes and attributes methods for storing snd loading the classifier state