Started working on v0.2.0: full implementation of models as class definitions