classify
rspec test added, fixed off-by-one error found by test