almost finished working on lab7