First update, main method added