chapter10 main method 작