implemented add_address method