Crossing problem

Click on the link to see the demo how the father and his two sons crosses the river.

The demo includes three steps, they are
Step1: father and his son1 will cross the river
Step2: father returns to other end to pick son2
Step3: father and his son2 will cross the river