The original Smalltalk-80 had an interface with it, so you added classes, added methods to classes using the user interface, you could easily view them. Methods should not be inside the class in a text file.
Now that you are working with GNU Smalltalk, it has the greatest impact on command line scripting and saves scripts inside text files. So you need a way to define the method and class inside the script.
Coral. " "? > , script.