solutions to assignment 2 176878