moving app/odels to lib/models