manipulating arrays exercise