completed lab 3 c coding