Refactor utility methods into class method
Add parsing config file
support multiple pages
Fix testcase