Implemented object-building in Parser class.