added pseudo code document first draft