add a sample for generator
add .gitignore