Ajd chapter16

Chapter 16
Damm I forgot to close my files, nice an clean