Working transistor created from a single atom