create factory method pattern
modify factory method
Merge pull request #1 from satomikko94/feature/factory_method

Feature/factory method