Essays on housing and labor markets