Implement MainActivity in Scala