Infrared experiment- wheres this code from?