darion's example for java python R maybe groovy or scala