I have been checking various questions on stackoverflow and of course google, but I can\'t really find any specific solution to this question:
How do I create a function