lab7.1 complete but has bugs