add basic generator and wrapped text retrieval in a class