finished extra credit memory leak check