Created models and collections (1904)

-created tests for program models and collections
-created program models and collections to pass the tests
-created segment model and test for it