Why does this code not work?

The guide says it needs to be in the lib folder.