Scala basic of class