Drjt chapter2

Adding Chapter1 changes and Chapter2 changes
You don't need to assign the result of ``"$str\n" x $num`` to ``$str`` here.