object and main method