new scala code