working parser code (milestone)