* rewrite create and getChapterNumber function.