data classTolkienCharacter(valname:String,valrace:Race,valage:Int?=null)enumclassRace(vallabel:String){HOBBIT("Hobbit"),MAN("Man"),ELF("Elf"),DWARF("Dwarf"),MAIA("Maia")
}valfrodo=TolkienCharacter("Frodo",HOBBIT,33)
valsam=TolkienCharacter("Gimli",DWARF)
valsauron=TolkienCharacter("Sauron",MAIA)
valboromir=TolkienCharacter("Boromir",MAN,37)
valaragorn=TolkienCharacter("Aragorn",MAN)
vallegolas=TolkienCharacter("Legolas",ELF,1000)
valfellowshipOfTheRing=listOf(boromir,TolkienCharacter("Gandalf",MAN),aragorn,TolkienCharacter("Sam",HOBBIT,38),TolkienCharacter("Pippin",HOBBIT),TolkienCharacter("Merry",HOBBIT),frodo,sam,legolas)