this is Scala, no need for semicolons
clean up the Range expansion a little bit
correcting this typo