Adding different ways to create a function