Pseudo code for planning out simple drawing app

From a jquery course