Updating file and Main class