ramp function

Create ramp function