結果 : factory method design pattern simple example