Added codes for section 6.2.
Added codes for section 6.3.
Added codes for section 6.4.
Added codes for section 7.
Added environment.
Added codes for section 9.