Tripartite Machines