add function3
function returns value to the client who called that function.