thesis pseudo code