:notebook: defining scope