Closes #4; implements loop 6x