The Dynamics of Reputations