Create ndmodel