   // the LEDs don't change while you're sending in bits:
   digitalWrite(latchPin, LOW);
   // shift out the bits:
-  shiftOut(dataPin, clockPin, MSBFIRST, x);  
+  shiftOut(dataPin, clockPin, LSBFIRST, x);  
 
   //take the latch pin high so the LEDs will light up:
   digitalWrite(latchPin, HIGH);

    sendDigit(digit7);
    sendDigit(digit8);
    sendDigit(digit9);
  }
}

void sendDigit(int x){

////Pin connected to DS of 74HC595
int dataPin = 11;

int digit0 = 0b10001000;
int digit1 = 0b11101110;
int digit2 = 0b10010100;
int digit3 = 0b11000100;
int digit4 = 0b11100010;
int digit5 = 0b11000001;
int digit6 = 0b10000011;
int digit7 = 0b11101100;
int digit8 = 0b10000000;
int digit9 = 0b11100000;
// if you want to add in the decimal point simply add 1 to each number

void setup() {
