updated packages
added examples for Factory Method pattern