Cleaning up ear.scala