Symbolic representations of composition of substances