outlined pseudocode for simple model