We should include a self-contained example that demonstrates how to create and register a custom codec class.