Saving arrays in EEPROM using ARDUINOMEGA

Ok...so this is the code(it doesn't have the GUI and stuff just an short program...)

#include <EEPROM.h>

void setup()
{
  Serial.begin(9600);
  int reference = 323;
  int gas = 1234;
  int serial;
  
  EEPROM.write(0,323);
  
  serial =EEPROM.read(0);
  
  Serial.print(serial);
  
  
}
void loop()
{
  int reference = 323;
  int gas = 1234;
  int serial;
  
  EEPROM.write(0,323);
  
  serial =EEPROM.read(0);
  
  Serial.print(serial);
  
}

So how can I save 323 then??

tnx