Ruby script to generate a template
problems 1-2