Adding classmethod and generator examples.