Start implementing the compileRule method.