You used a nonexistent class name.
Dim Fred as Husband //'Husband' not a data type
Dim f as Folder //should be FolderItem
Dim d as longdouble //no such thing; programmer is lost
Using nonexistent class names on a Dim statement.
Using a nonexistent class with the New operator.
Dim statement; New operator.