I found the `.length - 1` confusing. It took me a moment to realize that `length` is actually being used to mean `index`, here.