Collection class development: prepend and append functions are added