Give generateName a return type (though it changes)