Add factory method pattern example.
Create example of OOP.