add chap5 model part of demo