How Beliefs Shape Identity