A Reputation System for Artificial Societies