update Main Class