switch printing in kotlin, class fields printing