Implemented example 8.
Implemented example 9.
Implemented example 10
Implemented example 6.