initial implementation of model, collection, and views (no sorting yet)