Complied but won't run, need to add delete funcion