commented our algorithm so code works