simple program that visualizes fourier series