Use case classes in Ex2_02.scala