Understanding method scope