add api_key as a variable and set in initializer