lab7 done by zmz