ex49 finished.

Change ex49.rb and re-write test_ex49.rb.