with earnings distribution as step function. corrected