Code can generate all trees