Hw2 for CS170 - my_rotten_potatoes