What to do when you can't sleep

My doctor has always said if I cannot sleep, just get up and do something.