Added Factory pattern example
added classical inheritance pattern examples