Update Generator.php

Changed name of class Generator to MyGenerator because Generator is a keyword in PHP 5.5 and causes a conflict leading to fatal error.