example of scala