You made a reference to a class (with a New or Set statement) without first defining the class.
To correct this error
Set Statement