chap 3 -tidied code, added to links & summary