Reducing capital gains on the sale of a cottage

Fred’s mother wants to claim the cottage her principal residence before selling it to the kids