added a small main method for testing