Over the past couple of years, a lot of people have had a hard time buying a home.