Added pretty print method