scala example