Added build_fractal function.