Created a posts contoller