def get_account_from_name(self, name):
        """
        Returns the account with the given name.

        :type  name: string
        :param name: The name of the account.
        """
        for account in self.accounts:
            if account.get_name() == name:
                return account
        return None