Solution 7 and Assignment 8