adapt the example with the new grammar