Added factory method design pattern example with a single parametized creator.