dynamic arrays: add 'add' methof