forgot to add the actual generation script

adding it + a example for down