Added a return function

Added a block of function that will return a value.