completed lab6 and some optional parts