Creating a singleton object with the main() method