complete version 1 of simple parser