The Algebra Of Open And Interconnected Systems