Factory method example added.