finished implementing inspect function
unit-tests. all tests pass