Use case class in Scala

Resolves #3
Yeah, I agree.  I think to should probably be first.