added a function that takes arguments and returns a value