Essays on distribution rules, identity and social preferences in team production technologies