Using density to create rainbows

In our science topic, we changed the density of liquids using sugar to create rainbows. We used test tubes and pipettes.