Implemented the k-slope representation