It is necessary to include the class library using a require statement. before the library facilities can be utilized:
require("class")