implements deleteAll in prog6 class