small typo corrected in class Generator