Some fun with scala