Fix #8 - for loop expects 11 iterations
Merge pull request #10 from alanshaw/fix-for-loop

Fix #8 - for loop expects 11 iterations