Automatic Code Builder via Templates