A History of Psychology: The Emergence of Science and Applications