We'll create a function that takes two numbers and an operator as its parameters.