Create rampfunction