edit class instance