結果 : favor composition over inheritance python