add factory design pattern
Merge branch 'master' of https://github.com/MohamedFawzy/PDP