(#1) added line-slope-based walking