changed Interpreter from object to class