Class formation in a social network with asset exchange