Solving the JIT calculator challenge