Update README.md

add factory design pattern