Add methods append and remove
Update test of generate