Move Elem to Elem.scala