Created Post Formatter class and converted Repository to first class collection