class Item { def Item(name, value) { // constructor method this.name = name this.value = value } def increaseValue(amount) { ... } def reduceValue(amount) { ... } String toString() { ... } def name // name of the item def value // value of the item in game points }