update the homework 8