Working lab6 & lab7