Now using case classes to create the elastic search json document