Apparatus Theory