exercise of arraylist and vectors done