Update Algorithms Homework 3: