Wrote basic model classes