The task code for a study of moral hazard