Added and fixed up chapter6

Added an additional Question to the Programming Exercise