slope plugin
add slope
refactor to use slopes