Rewrite mod12 to use Scala pattern matching

Let's leverage the niceness of the pattern matching.  Much cleaner than
the if else form.  Also - it reminds me of the Erlang I have done :D

[ticket: Make it clean]