HomeWork 4_1実装