Implementing the interpreter class