First scala code