Add a model object

Add a model object contain everything along with a test program
to test reading (now) and writing (later).