Three essays on group dynamics, other-regarding preferences and cooperation