Make basic rect behaviour