created functions to test for SET || EMPTY
instructor exercises