solved till P09.scala