pragma solidity ^0.4.0; import "SimpleCustomer.sol"; contract SimpleCustomerFactory { address[] participantsBCId; mapping(address => address ) participantsList; function addCustomer(bytes32 _CorporateID, bytes32 _LegalName, bytes32 _EntityStructure, bytes32 _Ownership, address _customerBCId) { participantsBCId.push(_customerBCId); participantsList[_customerBCId] = new SimpleCustomer( _CorporateID, _LegalName, _EntityStructure, _Ownership); } function getParticipantContractAddressFrom(address _customerBCId) constant returns(address customerBCCId){ return participantsList[_customerBCId]; } }