This is the code that passed off lab 3