def size(self, value): """set size to new value""" var_name = 'size' Rectangle.check_int(value, var_name) Rectangle.check_width_height(value, var_name) self.__size = value