Add Ex2_02.scala

Similar to example at http://docs.scala-lang.org/tutorials/tour/classes.html