Dynamics of the housing market