How to Build Machines That are Safe?