calling on function activity and printing the result that is returned to the console