Trees and Class hierarchies