attempt at implementing  ember-data