When Mary pondered everything in her heart, she was reflecting on Jesus's words and actions and memorizing them so that she could relive them later, and for all of eternity.