// Populate a list with the instances def items = [new Item('Magical sword', 1000), new Item('Cloak of invisibility', 500), new Item('Amulet of protection', 700)] // now display each items.each { item -> println item // automatically calls toString } //def grail = new Item(name : 'Holy Grail', value : 10000) // no matching constructor