Example 3 - writing to file with a simple filter for Category