A model of two-sided reputation