Factors to consider when buying a house