Modified code layouts. added chapter 6 and 7 codes.
Profiling example completed.