Add a class extension for the classes.