Updating for homework 3