i've already attach a code, but here is the original .doc file what i got. maybe it can help
Arduino Lesson 19-Infrared Remote Control.doc (164 KB)