complete assignment 4.