Assignment 8 solved