example of defining custom dsl methods?