Adding custom formatter

Here’s the documentation for doing this: