Can anyone help make a coding for my project?

Maybe any safety measures? (Should it stop chopping when a kid turns it around?).
What should it do?
What code did you make yourself?