have some fun with scala 2.10

have some fun with scala 2.10