<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def finalize(self, **kwargs):
 """ The finalize method executes any subclass-specific axes finalization steps. The user calls poof & poof calls finalize. Parameters kwargs: generic keyword arguments. """

        # Set the title
        self.set_title(
            'Frequency Distribution of Top {} tokens'.format(self.N)
        )

        # Create the vocab, count, and hapaxes labels
        infolabel = "vocab: {:,}\nwords: {:,}\nhapax: {:,}".format(
            self.vocab_, self.words_, self.hapaxes_
        )

        self.ax.text(0.68, 0.97, infolabel, transform=self.ax.transAxes,
                     fontsize=9, verticalalignment='top',
                     bbox={'boxstyle':'round', 'facecolor':'white', 'alpha':.8})

        # Set the legend and the grid
        self.ax.legend(loc='upper right', frameon=True)