initial commit. some pseudocode