Rectangle solver¶