made number of items variable in example