Program compiles well. Not working properly for tau > 0.