Memory is the ability to encode, store, retrieve, and forget information over time. There are three main memory systems - sensory memory which briefly stores sensory information, short-term memory which can hold a limited amount of information for a short period of time, and long-term memory which stores information for the long-term. Memory is classified based on its physiological basis into explicit memory which is declarative memory of facts and experiences, and implicit memory which is nondeclarative memory of skills and habits. Attention is the cognitive ability to focus cognitive processing on a particular object, location, or attribute. There are different types of attention including sustained attention, selective attention, and alternating attention.