implement function bar
function returns desired value
added comment