Simple implementation to generate six output trees