Use case class in Scala

Resolves #3
Yes this is just for testing purpose