updating for homework #3