Agnes,
You may not edit a classlib that is currently loaded into memory. When you issue the NewObject() call the classlib ius loaded into memory and it remains loaded until the program does a clear program.
Your best approach is to end the app, in the comand window type CLEAR ALL, then try editing the classlib.