We are studying in this article an interplay between workers in organizations under the assumption that workers exhibit behavioral biases: envy, jealousy, or admiration toward the other coworkers' compensation. We assume workers care about their relative position, and we study the impact of this assumption on their efforts and on their optimal incentive contracts. We explicitly solve for the optimal incentive contract of moral hazard a la Holmstrom and Milgrom (Econometrica 55:303-328, 1987). We model team production by agents in which each agent's effort generates an observable signal and depends on efforts of other agents. One of the important findings is that an agent's optimal effort is negatively impacted by the behavioral biases in ot...