Updating main class