updateVersion method in main class