finish up lab7 coding