step function

Create step function