Completed lab3 assignment