Update moreBasicClasses.scala

Added trait code