changed the code so that the address is set within the constructor