example using parser class