a machine with different colored boxes