Modify class type