revised homework 2