An example of using Phantom Types in Scala