HW 8: added add at end
HW 8: added add to end