revised homework 3