Extracted Interpretor class. Tests pending.