// Structs: your own kind of value with fields and methods use basic struct Player { string name = "guest" score = 0 fun hit(points) { score += points } } fun main() { p = Player("dan") p.hit(10) p.hit(5) printl(p.name, "has", p.score, "points") printl(p) }