I learned a lot from the Xtend movie demo.
https://www.eclipse.org/xtend/documentation/102_moviesexample.html
Beyond that look at the Design Patterns. In particular almost everything you can do with Groups is in Design Pattern: Working with Groups in Rules.