Algebra of Simple Functions