Just starting to learn using domain types in Scala. In this code, I am trying to pass a typed parameter to a method that takes argument of the same type, and end up getting a cr