@classmethod
def from_dict(cls, dictionary):
    """
        Method for populating a SimObject from a dictionary.

        :param cls: Class to be instantiated.
        :param dict: Dictionary containing attribute data.
        :return: Instance of cls.
        """
    instance = cls()
    for key, value in dictionary.items():
        instance.__dict__[key] = value
    return instance
