Added delete node method