Change set_credentials to initialize, which makes more sense for the credentials to be in the constructor instead of a separate method.