7.20 main method