programmatic generation

integrating example programmatic generation