Compound Conditionals as Random Quantities and Boolean Algebras