finished generic parser and added example