functions HOMEWORK

This is a remake of my fractal code but using a single function instead.