problem with creating a library

I quickly went into my Sketchbook/libraries folder and created a Led folder and inside that created a Led.h and a Led.cpp. I cut and pasted from the code here and it compiled fine with the sketch provided here.

I'm using 1.01 on Linux.