lab7 and lab9