first pass at interactive Slope equation, has many problems