Reference parser ver. 1