#!/usr/bin/env python
from simple import *

class CreatorImpl(Creator):
   def __init__(self):
      return
   def create(self, b):
      return A(b)

factory = Factory()
c = CreatorImpl()
factory.reg(c)

b = B()
a = factory.create(b)