Remove magic numbers.
Make grammar more specific.
Add failing test.
Fix off-by-one miscalculation.