Adding delete funcion