type is the return datatype passed back by the function
name is an arbitrary name for the function that will be used to call the function
In the body of the function, you have to make sure that each path the code can take ends in a return call that passes back the type specified in the function declaration/definition.