move parser class to parser package