updated sample Scala classes