Shape moved to Scala abstract class