How to save an integer in eeprom

Oh, and the really easy way to just do an integer to eeprom is:

// writing to address 0 and 1:

int yourInteger=21345;
EEPROM.write(0,highByte(yourInteger);
EEPROM.write(1,lowByte(yourInteger);

// Reading from address 0 and 1:

byte high = EEPROM.read(0);
byte low = EEPROM.read(1);
int myInteger=word(high,low);
Serial.println(myInteger,DEC);

Anything does anything, but this is the quick and dirty for integers....