test3 pseudo code