Start assignment 6 from professor's solution to 5, adding some pseudocode