pgm-003 assignment 8 solution