How different generations are buying homes