Its a test code for delta function