comments on Tutorial6.scala