Simple prototype of component-based framwork