Thomas: You may want to consider this: http://www.rubygarden.org/ruby?ASCIIClassHierarchyGenerator It will generate an arbitrary hierachy. -austin