solutions to assignment 8 168199