finished assignment 6