added ```groovy statements to highlight the code snippets