scala syntax samples