Almost working! (seg faults at deletion)