basic scala example