splitting parsing functionality into a separate class