added code for add and delete elemnts from collections