This is an sample for factory Design Pattern.