example implementation of renderer and generator