How to make a sex chromosome