An introduction to cognitive psychology