chapter data structure complete.