complete assignment 8.