結果 : factory method example python