import yaml

class Figure(object):

    def __init__(self, value, unit):
        self.value = value
        assert type(unit) is unicode
        self.unit = unit