Class stubs; move shit out of main method