Can someone please help me get started with this project:

I need a PIC to be able to learn 6 different IR codes and be able to output them depending on certain conditions. Basically a very small learning remote.

Thanks for any help.