object Hello //extends App { var x = 1 println("test") x = x + 2 println("foo") synchronized { x = x + 1 } println("hello world") }