finished off zguide chapter 2 examples