Added extra constructor for rectangle