Add Init.rb to Composite pattern implementation and fix bugs