my $difference = abs($numbers[$index] - $numbers[$index - 1]);