simple program which plots the fourier series