Update class Main