@classmethod
def create_from_dict(cls, dic):
    """
        Create a list of Bars from a dic.
        
        Parameters
        ----------
        dic : dict
            Keys are attribute names of Bar, values are corresponding values.

        Returns
        -------
        bar : Bar

        """
    bar = cls()
    bar.__dict__.update(dic)
    return bar
