There are two ways to create an operation:
Create an operation in the context of a function or method.
Create an operation as a class or object.