bubbles and some basic code