put the general flow into the uDo class

this will be the guideline for our APIs.

Signed-off-by: Nicholas Lum <nicholaslum444@hotmail.com>