A theory and the measurement of attention