[scala] Class hierarchy, tree