Added a controller to Posts and showed index page of posts