Implement for loop over tuple

Closes #211.
Refactor to use for loop over tuple
Refactor use for loop over tuple