revised
added figs for ex3.27
solved ex 3.27
added link to source code
completed the post