completed assignment 7.