public String printTree(int depth) {
        String print = "";

        for (int i = 0; i < depth; i++) {
            print = print + "  ";
        }
        print = print + toString() + "\n";

        Binomialnode a = child;
        while (a != null) {
            print = print + a.printTree(depth + 1);
            a = a.sibling;
        }

        return print;
    }