Planning and managing housing for the elderly