Modeling the Perception of Intentions