Mandelbrot generator from Grade 11