Put generation related functions to a Generator class