Add static method and main method to test