How to Construct a Time Machine