encapsulate parse logic to the specific class