added function

Put in a function that takes three parameters, adds them together and
returns them.