Update scala snippet