App model and repository.