Pseudocode
Some helpers.
plot
separate points