Add some scala code