core finished for chapter 3