put everything in methods in the main class