mplemented ContractRepository, finished setup