added pattern factory method
added pattern factory method
Merge branch 'master' of https://github.com/ViktorKukurba/study.solutions.js