an example of dsl implementation