@classmethod
def from_dict(cls, pattern_dict):
    """
        Loads an instance from a dictionary
        :param pattern_dict: a dictionary holding the pattern's parameters
        :return: a Pattern instance
        """
    return cls(**pattern_dict)
