completed lab 9 using different methods in the program