removed main method and test method.