Add method listPosts