Coding our rule and generating a prototype and result