Adding examples of abstract factory.

Signed-off-by: Tomasz Kamiński <kaminski.tomasz.a@gmail.com>