First cut at Groovy script to create an instance