privatizing variables and function out of the global scope.