working prototype for sentence interpretation