initial outline of the code