Working with triangular ramp