flesh out Resource model case class