Added the clearSpace method