add function3
function returns value to the client who called that function.
Merge pull request #35 from brahms10/feature/scatter

Feature/scatter