Array sum example