updated interpreter to handle multiline expressions