updated homework 3