Simplified array and dictionary code - replaced equivalent methods with literal syntax.