added functionOperation shell code