Theory of Attention