Complete problem 7
Complete problem 8