Sample: using case classes + JSON reads/writes