Step function definition