Create TablesOfContects.rb

Last exercise on Chapter 8 of Chris Pine. getting error message at the end when the file finishes its job.