how does renting an apartment work