parser and simple example