Add some functions of charpter 8