Pixar's animated movie "Inside Out" grossed $91 million in its first week. That's the best opening for an original Pixar movie. The film is about a young girl who learns to deal with five of her personified emotions. The film's producers consulted many psychologists and researchers, including a UC Berkeley professor.

When Pixar approached the UC Berkeley Department of Psychology about getting into the mind of an 11-year-old through animation, that professor said, "Are you kidding?" It took five years to get it right.

The movie "Inside Out" has five emotions living inside the mind of 11-year old Riley Anderson, who now lives in San Francisco.

"Most of us that worked on the film had kids so there was always open discussions about, oh my kid's doing this, my kid's doing that, you know?" said the film's production manager Dana Murray. "So there was lots of talk about family."

Understanding the emotional expression in an 11-year-old was not an easy task. Pixar turned to UC Berkeley's Department of Psychology and Professor Dachel Keltner, Ph.D., for help.

"If people can embrace their emotions and just let them happen and not try to suppress them, you do better, right?" he said. "And this film tells us that."

Amy Poehler was the voice of "Joy."

In the film her character said, "You can't focus on what's going wrong, there's always a way to turn things around."

The movie has been an instant hit.

"Probably kinda gives a sense of legitimacy for a lot of kids who are struggling with emotional stuff," said moviegoerRachel Sniderman.