Using Fourier Transform