implement foreach in interpreter