explaining scope is provided by functions