The two questions you need to answer are (1) what exactly do you mean by "CMS" (i.e., what are the detailed requirements), and (2) once you know that, is there any reason you have to write a CMS instead of using an existing one if it does a good job of satisfying those requirements?
Or is this some sort of school assignment?