added I02.scala for TailRec