working on chapter 5 - general distributions