Add Ex2_06.scala