extract HTML table parsing into a separate class