Added fft function to data class