To have classes run when the IDE starts, you can place classes under the Startup node in the Options window.

Create the class, right-click on its Explorer node, and choose Copy from the contextual menu. Then choose Tools | Options from the main window, right-click the Startup node, and choose Paste | Copy from the contextual menu.