Implemented enhanced for statement into handwritten scanner