Part 6 - adding filter hooks

Code for Part 6 in the series