Calling on and passing values to function result and printing out the result to the console