The Gainsharing Design Manual