[array] Program partly rewrited. Improved code coverage.