implement factory method pattern to show the topics