Memory also appears to play a role in imagining what someone else might be feeling, known as theory of mind, which is helpful in deciding how to behave in unfamiliar social situations, such as going to a party with a new group of friends or starting a job.