An Implementation of the Interpreter Pattern