Add Ex2_07-10.scala