Having trouble understanding "scope"