refactors models into separates app/models/ files