change base class; fix example