write a diff application fir learning