finished coding homework 6