add case class code
Merge pull request #1 from typesafehub/wip/caseclasses

add case class code