work on issue #18. basic logic implemented.
resolves issue #18. scenario described is now complete.