exercise of 1.5 array&vector