Simple interpreter for teaching purposes