Assignment 6 solved