second version assignment 2, needed to delete a line