complete second part, simple parser implemented