Creating the block to display this new information is a another call to Drupal's generate:plugin:block, except this time, we're going to tell it to use a service and provide the mastering_drupal_8.weather_underground service.

Adding it to the Content region through the block administrative pages causes the default text to appear.

Then, we can wire up the block to the service in the build() function and output a list of any current hurricanes.

One thing you'll notice in the code of our new CurrentHurricanes block is the addition of the static create() method. This static factory method is what provides the constructor with dependencies. In order to add new dependencies to a plugin you need to add them to both the constructor signature as well as the create() method.