some fun with scala