Careful planning and investing are key.