Add definition methods for modules and classes.