compare the results with my implementation.