finished part 2 of group project - pseudocode