getSlope works