It happens quite often that we need to define classes for the sole purpose of holding data. If you have been coding in Scala, I'm sure case classes will come to your mind. Kotlin provides a similar concept, but the term is known as data classes. We will talk a bit more about this type of class in detail in a later chapter, but for now you can define such a class as follows:
data class Customer(val id:Int, val name:String, var address:String)
The compiler does a lot for us when we define a data class, but we will leave these details for later.