Add code for dynamic classes and methods.