added a test function so that I could use it to experiment with.