We can use the ATMega328P instead of the 168, the 328 has 32K of FLASH, 2K of RAM and 1K of EEPROM IIRC. Remove the old chip in the Arduino, insert the new one, you have to make a few changes in the bootloader for the code to recognize the chip, and you are (almost) in business