Add for loop support

fixes #31