The fractal spatial distribution of stars in open clusters and stellar associations