wroking till end of chapter 8