HW 8: added add at end