Added BaseParser class