Migration to scala

Project migrated to scala