Implemented esample 1
Implemented example 2
Implemented example 3
Implemented example 4
Implemented sample 5.