Please explain about Accounting treatment in case of forward contracts and Derivative contracts with illustration

Raghu Nath's image