Template generation to share code
Generator shaping up