```1.upto()``` isn't quite the same as ```for x in 1..something```. Off by one.