Update simple_generator.rb

Refactor a bit
Merge pull request #1 from yuri-g/master

Update simple_generator.rb