Add a method to pretty print the result.