completed lab3 just needs comenting and streamlining