functionality for emitting methods for each class added