include generic model generation code (Uncomment to use)