Modify a class extension