created shared/model.js (from CK)