modified examples to run with scala 2.10