Manipulating arrays by use case