Tweaking the chapter 5 examples, fixing the client distortion example