adding code to complete issue #4