結果 : simple example of factory design pattern in java