changed init of repository to IoC
added address repository