converted the Application enum to scala.