A dirty but barebone example of how the scala plugin could look like