finish assignment 8
Fixed.