adding final part of lab7 & lab8