create_cut function

Create a cutting function